<?php include_once ('./bootstrap.php');

					Doctrine_Core :: loadModels('../models');
					$arrayCour = Doctrine_Core :: getTable ( 'Adherent' )->findBy('ad_id',$_POST['ad_id'],null);		
															
					$arrayCour[0]['ad_est_actif'] = $_POST['ad_actif'];
					$arrayCour[0]->save();
										
					echo "Modifications prisent en compte.";
?>